package com.cbs.android.function.feedback.baichuan;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.alibaba.sdk.android.feedback.impl.FeedbackAPI;
import com.cbs.android.component.application.activity.CBSActivity;

/**
 * Created by zyj on 2016/12/16.
 */

public class CBSFeedbackActivity extends CBSActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.cbs_feedback_activity);

		FeedbackAPI.cleanFeedbackFragment();
		Fragment fragment = FeedbackAPI.getFeedbackFragment();
		FragmentManager fragmentManager = getSupportFragmentManager();
		FragmentTransaction transaction = fragmentManager.beginTransaction();
		transaction.add(R.id.cbs_feedback_activity_fragment, fragment);
		transaction.commit();
	}
}
